//
//  UICollectionReusableView+XLExtension.m
//  HighChemical
//
//  Created by 左学良 on 2017/3/19.
//  Copyright © 2017年 左学良. All rights reserved.
//

#import "UICollectionReusableView+XLExtension.h"

static const void *handlerBlockKey = &handlerBlockKey;

@implementation UICollectionReusableView (XLExtension)

- (void (^)(NSDictionary *))handlerBlock
{
    return objc_getAssociatedObject(self, handlerBlockKey);
}

- (void)setHandlerBlock:(void (^)(NSDictionary *))handlerBlock
{
    objc_setAssociatedObject(self, handlerBlockKey, handlerBlock, OBJC_ASSOCIATION_COPY_NONATOMIC);
}


@end
